/*
window.TITTSyncing = new function() {
	this.sync = function(f) {
		
		function syncf() {
			var args = "";
			for(var i = 0; i < syncf.arguments.length; i++)
				args += "syncf.arguments["+i+"],";
			
			var fu = new Future();
			
			eval("f("+args+"fu.fulfill);");
			
			return fu.result();
			
		}
		
		return syncf;
	}
}
*/

window.TITTSyncing=new function(){
this.sync=function(f){
function syncf(){var _f = _frm(arguments);var _cp=_f.scp;_s:while(1){switch(_cp){case 1:
var args="";
for(var i=0;i<syncf.arguments.length;i++)
args+="syncf.arguments["+i+"],";_cp=2;case 2:if((_f.v2=_f._new(
Future))===_S){break _s;}var fu=_f.v2;_cp=3;case 3:if((_f.v3=
eval("f("+args+"fu.fulfill);"))===_S){break _s;}_cp=4;case 4:if((_f.v4=
fu.result())===_S){break _s;}return _f.v4;return;case 0:i=_f[0];args=_f[1];fu=_f[2];_cp=_f.cp;}}return _f.sus(i,args,fu,_cp,this)}
return syncf;};};
